/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package DAO;

import java.sql.Connection;
import java.sql.DriverManager;

/**
 *
 * @author phuong
 */
public class DBConnection {
    private static Connection con;
    public static Connection myConnection() throws Exception{           
        Class.forName(com.microsoft.sqlserver.jdbc.SQLServerDriver.class.getName());
        String dbUrl = "jdbc:sqlserver://localhost;databaseName=RadioCabsDB;user=sa;password=123456";
        con = DriverManager.getConnection(dbUrl);
        return con;
    }    
}
